<!--{template common/header_simple_start}-->
<link href="static/css/common.css?{VERHASH}" rel="stylesheet" media="all">
<link href="static/css/checkbox.css?{VERHASH}" rel="stylesheet">
<link href="user/login/images/login_single1.css?{VERHASH}" rel="stylesheet" />
<!--[if lt IE 9]>
  <script src="static/js/jquery.placeholder.js" type="text/javascript"></script>
<![endif]-->
<script type="text/javascript" src="user/scripts/login.js?{VERHASH}"></script>
<!--{template common/header_simple_end}-->
<!--{if $_G['setting']['bbclosed']}-->
<nav class="navbar navbar-inverse resNav bs-top-container" >
	<div class="resNav-item resNav-left">     
    	<ul class="nav navbar-nav navbar-nav-left">
          <li>
          <a class="site" href="{$_G[siteurl]}"><span class="site-logo">
            <!--{if $_G['setting']['sitelogo']}-->
              <img src="{eval echo $_G['setting']['sitelogo']?'index.php?mod=io&op=thumbnail&size=small&path='.dzzencode('attach::'.$_G['setting']['sitelogo']):'';}" style="max-height:30px;">
			  <!--{else}-->
              <img src="static/image/common/logo.png" style="max-height:30px;">
			  <!--{/if}-->
              </span><span class="site-name">$_G['setting']['sitename']</span></a>
          </li>
      </ul>
  </div>
</nav>
<!--{/if}-->
<!--{eval $loginhash = 'L'.random(4);}-->
<!--{template common/beijing}-->

<div class="mainContainer" id="main_message">
   <div class="modal-content">
    <div class="brand">
    <!--{if $_G['setting']['sitelogo']}-->
    <img src="{eval echo $_G['setting']['sitelogo']?'index.php?mod=io&op=thumbnail&size=small&path='.dzzencode('attach::'.$_G['setting']['sitelogo']):'';}">
        <!--{else}-->
    <img src="static/image/common/logo.png">
        <!--{/if}-->
    </div>
    <!--{if !$_G['setting']['bbclosed']}-->
    <!--{if $_G[setting][loginset][title]}-->
    <div class="main-title">$_G[setting][loginset][title]</div>
    <!--{/if}--> 
    <!--{if $_G[setting][loginset][subtitle]}-->
    <div class="sub-title">$_G[setting][loginset][subtitle]</div>
    <!--{/if}-->
    <form method="post"  name="login" id="loginform_$loginhash" class="loginForm" role="form" onsubmit="{if $_G['setting']['pwdsafety']}pwmd5('password3_$loginhash');{/if}pwdclear = 1; loginsub('loginform_$loginhash', 'returnmessage_$loginhash');return false;"  action="user.php?mod=login&op=logging&action=login&loginsubmit=yes{if !empty($_GET['handlekey'])}&handlekey=$_GET[handlekey]{/if}{if isset($_GET['frommessage'])}&frommessage{/if}&loginhash=$loginhash">
      <input type="hidden" name="formhash" value="{FORMHASH}" />
      <input type="hidden" name="referer" value="{$referer}" />
      <!--{if $auth}-->
      <input type="hidden" name="auth" value="$auth" />
      <!--{else}-->
      <div class="form-group">
        <input type="text" class="form-control" id="email_$loginhash" placeholder="{lang email_username}" name="email"  autocomplete="off">
      </div>
      <div class="form-group">
        <input type="text" class="form-control" id="password3_$loginhash" placeholder="{lang user_login_password}" name="password" onfocus="this.type='password'" autocomplete="off">
      </div>
      <!--{/if}-->
      <!--{if $seccodecheck}-->
      <div class="form-group seccode-wrapper clearfix"> 
      <!--{template common/seccheck}--> 
      </div>
      <!--{/if}-->
      <div class="form-group  clearfix">
        <div class="checkbox-custom checkbox-primary pull-left">
          <input type="checkbox" name="cookietime" id="cookietime_$loginhash" value="2592000" $cookietimecheck />
          <label for="cookietime_$loginhash">{lang automatic_login_within_thirtydays}</label>
        </div>
        <!--{if $_G['setting']['regstatus']>0}--> 
        <a  class="pull-right"  href="user.php?mod=register&referer={eval echo urlencode($referer);}"  <!--{if !empty($_GET['inajax'])}-->onclick="_login.register($referer);return false;"<!--{/if}--> title="$_G['setting']['reglinkname']">$_G['setting']['reglinkname']</a> 
        <span class="spacer  pull-right">|</span> 
        <!--{/if}--> 
        <a class="pull-right"  href="user.php?mod=login&op=logging&action=lostpasswd">{lang getpassword}</a> 
      </div>
      <div style="padding-top:15px;text-align: left;">
          <span class="third-login-header">{lang other_login}：</span>
          <a class="pull-right"  href="admin.php">管理员登录</a>
          <!--{if $_G['setting']['qq_login']>0}-->
          <a class="qqlogin" style="margin:0 5px" href="user.php?mod=qqlogin" title="{lang qq_login}">
              <img src="user/images/qq.png" height="24" />
          </a>
          <!--{/if}-->
      </div>
      <div class="third-wrapper clearfix">
        <!--{hook third_login}-->
      </div>
        <p class="error-msg text-danger" id="returnmessage_$loginhash"></p>
        <!--{if $_G['setting'][loginset][youkedenlu]}--> 
        <a href="$_G['siteurl']" class="btn btn-lg btn-primary btn-block">游客访问</a>
        <!--{/if}--> 
        <button class="btn btn-lg btn-primary btn-block" type="submit" name="loginsubmit" value="true">{lang login_empty}</button>
    </form>
    <div class="copyright-container">
      <!--{template common/copyright}-->
    </div>
  </div>
</div>
<div class="nfl" id="main_succeed" style="display: none;text-align: center;">
	<div class="modal-body">
  		<div class="alert_right" style="display: inline-block;">
    		<div id="succeedmessage"></div>
    		<div id="succeedlocation" class="alert_btnleft"></div>
    		<p class="alert_btnleft"><a id="succeedmessage_href" href="javascript:;">{lang message_forward}</a></p>
  		</div>
	</div>
</div>
<!--{if $_G['setting']['pwdsafety']}--> 
<script type="text/javascript" src="user/scripts/md5.js?{VERHASH}" reload="1"></script> 
<!--{/if}--> 
<script type="text/javascript">

var pwdclear = 1;
function initinput_login() {
	document.body.focus();
	<!--{if !$auth}-->
		if(document.getElementById('loginform_$loginhash')) {
			document.getElementById('loginform_$loginhash').email.focus();
		}
	<!--{/if}-->
}

function clearpwd(self) {
	self.type='password';
	if(pwdclear) {
		document.getElementById('password3_$loginhash').value = '';
	}
	pwdclear = 0;
}

jQuery(document).ready(function(e) {
	initinput_login();
	if(jQuery('.ie8,.ie9').length){ //ie8模拟placeholder;
		jQuery(':input[placeholder]').each(function(){
			jQuery(this).placeholder();
		});
	}
});

</script>
<!--{else}-->
<div class="main-title">$_G[setting][closedreason]</div>
		<div class="sub-title"><a class="btn btn-lg btn-primary btn-block" href="admin.php">管理员登录</a><div class="copyright-container">
		<!--{template common/copyright}-->
		</div></div>
		
<!--{/if}-->
<script src="static/bootstrap/js/bootstrap.min.js?{VERHASH}"></script> 
<!--{template common/footer}-->